<extend name="Public/base" />
<block name="body">
    <!-- 标题 -->
    <div class="main-title">
        <h2>首页图片操作</h2>
    </div>
    <assign name="vark" value="123" />
    <for start="0" end="8" name="kk">
        <php>$vark = 0;</php>
        <if condition="$kk lt 4">
            <foreach name="list" item="vo">
                <if condition="$kk+1 eq $vo['displayOrder']">
                    <form action="{:U('Images/uploadh')}" enctype="multipart/form-data" method="post">
                        <div>
                            <div style="margin-top:10px">
                                <label style="color:#912CEE">上传第{$kk+1}张轮播图</label>
                                <input style="padding-left:10px;color:#912CEE" type="file" name="lunbo{$kk}" />
                                <input type="hidden" name="kk" value="{$kk}" />
                                <input type="hidden"  name="imgh{$kk}" value="{$vo['imagepath']}" />
                                <img style="width:100px;height:60px" src="Uploads/{$vo['imagepath']}" />
                                <input name="h{$kk}" type="text" style="padding-left:10px;color:#912CEE" class="text input-large" value="{$vo['imageURL']}"
                                    placeholder="跳转地址">
                                    <input type="radio" name="cbh{$kk}" value="wangye" <if condition="$vo['imageType']==1">checked="checked"</if> />网页
                                    <input type="radio" name="cbh{$kk}" value="danpin" <if condition="$vo['imageType']==2">checked="checked"</if>/>单品
                                    <input type="radio" name="cbh{$kk}" value="xuanp" <if condition="$vo['imageType']==3">checked="checked"</if>/>选品列表
                                <button class="btn submit-btn " id="submit" type="submit" target-form="form-horizontal">确 定</button>
                            </div>
                        </div>
                    </form>
                    <hr/>
                    <php>$vark = 1;</php>
                </if>
            </foreach>
            <if condition="$vark eq 0">
                <form action="{:U('Images/uploadh')}" enctype="multipart/form-data" method="post">
                    <div>
                        <div style="margin-top:10px">
                            <label style="color:#912CEE">上传第{$kk+1}张轮播图</label>
                            <input style="padding-left:10px;color:#912CEE" type="file" name="lunbo{$kk}" />
                            <input type="hidden" name="kk" value="{$kk}" />
                            <input type="hidden"  name="imgh{$kk}" value="" />
                            <img style="width:100px;height:60px" src="" />
                            <input name="h{$kk}" type="text" style="padding-left:10px;color:#912CEE" class="text input-large" value="" placeholder="跳转地址">
                            <input type="radio" name="cbh{$kk}" value="wangye" />网页
                            <input type="radio" name="cbh{$kk}" value="danpin" />单品
                            <input type="radio" name="cbh{$kk}" value="xuanp" />选品列表
                            <button class="btn submit-btn " id="submit" type="submit" target-form="form-horizontal">确 定</button>
                        </div>
                    </div>
                </form>
                <hr/>
            </if>
            <else />
            <foreach name="list" item="vog">
                    <if condition="$kk+1 eq $vog['displayOrder']">
                    <form action="{:U('Images/uploadg')}" enctype="multipart/form-data" method="post">
                        <div style="margin-top:10px">
                            <label style="color:#1E90FF">上传第{$kk-3}张广告图</label>
                            <input style="padding-left:10px;color:#1E90FF" type="file" name="guang{$kk-3}" />
                            <input type="hidden" name="gg" value="{$kk}" />
                            <input type="hidden" name="imgg{$kk-3}" value="{$vog['imagepath']}" />
                            <img style="width:100px;height:60px" src="Uploads/{$vog['imagepath']}" value="{$vog['imagepath']}"/>
                            <input name="g{$kk-3}" style="padding-left:10px;color:#1E90FF" type="text" class="text input-large" value="{$vog['imageURL']}"
                                placeholder="跳转地址">
                                <input type="radio" name="cbg{$kk-3}" value="wangye" <if condition="$vog['imageType']==1">checked="checked"</if> />网页
                                <input type="radio" name="cbg{$kk-3}" value="danpin" <if condition="$vog['imageType']==2">checked="checked"</if>/>单品
                                <input type="radio" name="cbg{$kk-3}" value="xuanp" <if condition="$vog['imageType']==3">checked="checked"</if>/>选品列表
                                <button class="btn submit-btn " id="submit" type="submit" target-form="form-horizontal">确 定</button>
                        </div>
                    </form>
                    <hr/>
                    <php>$vark = 1;</php>
                </if>
            </foreach>
            <if condition="$vark eq 0">
                <form action="{:U('Images/uploadg')}" enctype="multipart/form-data" method="post">
                    <div>
                        <div style="margin-top:10px">
                            <label style="color:#1E90FF">上传第{$kk-3}张广告图</label>
                            <input style="padding-left:10px;color:#1E90FF" type="file" name="guang{$kk-3}" />
                            <input type="hidden" name="gg" value="{$kk}" />
                            <input type="hidden" name="imgg{$kk-3}" value="" />
                            <img style="width:100px;height:60px" src="" value="" />
                            <input name="g{$kk-3}" type="text" style="padding-left:10px;color:#1E90FF" class="text input-large" value="" placeholder="跳转地址">
                            <input type="radio" name="cbg{$kk-3}" value="wangye" />网页
                            <input type="radio" name="cbg{$kk-3}" value="danpin" />单品
                            <input type="radio" name="cbg{$kk-3}" value="xuanp" />选品列表
                            <button class="btn submit-btn " id="submit" type="submit" target-form="form-horizontal">确 定</button>
                        </div>
                    </div>
                </form>
                <hr/>
            </if>
        </if>
    </for>

    <div class="main-title">
        <h2>启动页面图片设置</h2>
        <form action="{:U('Images/uploadq')}" enctype="multipart/form-data" method="post">
            <div>
                <div style="margin-top:10px">
                    <label style="color:#1E90FF">上传启动页广告图</label>
                    <input style="padding-left:10px;color:#1E90FF" type="file" name="qidong" />
                    <img style="width:100px;height:60px" src="Uploads/{$listqd[0]["imagepath"]}" value="" />
                    <button class="btn submit-btn " id="submit" type="submit" target-form="form-horizontal">确 定</button>
                </div>
            </div>
        </form>
    </div>
</block>
<block name="script">
    <script type="text/javascript">
    </script>
</block>